package model.DAO;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import model.Entity.Web.VoteQuestion;

import org.springframework.stereotype.Repository;

@Repository("VoteQuestionDAO")
public class VoteQuestionDAO extends GenericDAO {
	
	public List<VoteQuestion> findActiveQuestion(){
		Map<String, Integer> paramMap = new HashMap<String, Integer>();
		paramMap.put("voteStatus", 1);
		return super.findByNamedQuery(VoteQuestion.class, "findByVoteStatus", paramMap);
	}

}
